<!doctype html>
<html>
<head>
    <meta charset="UTF-8">
    <title>后台管理</title>
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/static/admin/css/common.css"/>
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/static/admin/css/main.css"/>
    <script type="text/javascript" src="__PUBLIC__/static/admin/js/libs/modernizr.min.js"></script>
</head>
<body>
{include file="Public/top" /}
<div class="container clearfix">
    {include file="Public/left" /}
    <!--/sidebar-->
    <div class="main-wrap">

        <div class="crumb-wrap">
            <div class="crumb-list"><i class="icon-font"></i><a href="{:url('admin/index/index')}">首页</a><span class="crumb-step">&gt;</span><a class="crumb-name" href="{:url('admin/cate/list')}">问卷管理</a><span class="crumb-step">&gt;</span><span>修改问卷</span></div>
        </div>
        <div class="result-wrap">
            <div class="result-content">
                <form action="" method="post" id="myform" name="myform" enctype="multipart/form-data">
                    <input type="hidden" name="id" value="{$cates.id}">
                    <table class="insert-tab" width="100%">
                        <tbody>
                            <tr>
                                <th width="10%"><i class="require-red">*</i>问卷名称：</th>
                                <td>
                                    <input class="common-text required" id="catename" name="catename" size="50" value="{$cates.catename}" type="text">
                                </td>
                            </tr>
                            <tr>
                                <th>问卷描述：</th>
                                <td><textarea name="title" class="common-textarea" id="desc" cols="30" style="width: 50%;" rows="2">{$cates.title}</textarea></td>
                            </tr>
                             
                             {volist name="cate_contens" id="vo"}

                                <tr id="w1">
                                    <th>问{$vo.id}题{$i}：</th>
                                    <td>
                                        <p>问题标题</p><input class="common-text" name="title{$i}" size="50" value="{$vo.title}" type="text">
                                        <p>问题类型： 
                                        
                                        <input name="type{$i}" value="1" type="radio" {if condition="$vo.type eq 0 "} checked=""  {/if} > 单{$vo.type}选题 
                                        <input name="type{$i}" value="2" type="radio" {if condition="$vo.type eq  1 "} checked="" {/if} > 多选题 </p>
                                        <input type="hidden" name="id{$i}" value="{$vo.id}">



                                        <p>选项1：<input class="common-text" name="answer1{$i}" size="50" value="{$vo.answer1}" type="text"></p>
                                        <p>选项2：<input class="common-text" name="answer2{$i}" size="50" value="{$vo.answer2}" type="text"></p>
                                        <p>选项3：<input class="common-text" name="answer3{$i}" size="50" value="{$vo.answer3}" type="text"></p>
                                        <p>选项4：<input class="common-text" name="answer4{$i}" size="50" value="{$vo.answer4}" type="text"></p>
                                        <p>选项5：<input class="common-text" name="answer5{$i}" size="50" value="{$vo.answer5}" type="text"></p>
                                        <p>选项6：<input class="common-text" name="answer6{$i}" size="50" value="{$vo.answer6}" type="text"></p>
                            </tr>
                             {/volist}
                            <tr>

                                <th></th>
                                <td>
                                    <input class="btn btn-primary btn6 mr10" value="提交" type="submit">
                                    <input class="btn btn6" onclick="history.go(-1)" value="返回" type="button">
                                </td>
                            </tr>
                        </tbody></table>
                </form>
            </div>
        </div>

    </div>
    <!--/main-->
</div>
</body>
</html>